import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import getters from './getters'

Vue.use(Vuex)

const state = {
	url:'http://www.math80.com',
	defLogo:'../static/images/deflogo.jpg',
	defLogoBg:'../static/images/deflogobg.jpg',
	token:null,
	gender:0,//用户对象性别
	login:false,//是否登录
	loading:false,//加载中
	uid:'',//用户id
	password:'',
	nickname:'',//用户名称
	avatar:'',//用户头像
	square_avatar:'',//用户背景图
	mb_count:'',//用户爱情币
	wallet_balance:'',//用户钱包
	alertStaticTxt:'',//弹窗提示
	alertStatic:false,//弹窗提示
	mpSpan:false,//播放图标
	mpId:1,//当前歌曲id
	mpData:[],
	mpPlay:false,//播放状态
	mpStatic:false,//播放窗口状态
	mpUrl:'../static/mp3/1.mp3',//默认节目
}

export default new Vuex.Store({
	state,
	getters,
	actions,
	mutations,
})